package words;

import java.util.ArrayList;

public class StringType extends Types{
	private ArrayList<String> data;
	public StringType()
	{
		super();
		data = new ArrayList<String>();
	}
	public boolean input(String data)
	{
		try
		{
			this.data.add(data);
			return true;
		}
		catch(Exception e)
		{
			e.printStackTrace();
			return false;
		}
	}
	public String[] getStringArray()
	{
		String[] array = data.toArray(new String[data.size()]);
		return array;
	}
}
